package com.hunter.sign.dao.model;

import java.io.Serializable;

public class SignDevice implements Serializable {
    /**
     * 主键id
     *
     * @mbg.generated
     */
    private Long deviceId;

    /**
     * 设备名称
     *
     * @mbg.generated
     */
    private String devname;

    /**
     * 设备编号
     *
     * @mbg.generated
     */
    private String devno;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String note;

    /**
     * 创建时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long createTime;

    /**
     * 修改时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long modifyTime;

    private static final long serialVersionUID = 1L;

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDevname() {
        return devname;
    }

    public void setDevname(String devname) {
        this.devname = devname;
    }

    public String getDevno() {
        return devno;
    }

    public void setDevno(String devno) {
        this.devno = devno;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", deviceId=").append(deviceId);
        sb.append(", devname=").append(devname);
        sb.append(", devno=").append(devno);
        sb.append(", note=").append(note);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SignDevice other = (SignDevice) that;
        return (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
            && (this.getDevname() == null ? other.getDevname() == null : this.getDevname().equals(other.getDevname()))
            && (this.getDevno() == null ? other.getDevno() == null : this.getDevno().equals(other.getDevno()))
            && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
        result = prime * result + ((getDevname() == null) ? 0 : getDevname().hashCode());
        result = prime * result + ((getDevno() == null) ? 0 : getDevno().hashCode());
        result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}